//
//  TZConnection.h
//  TZGroup
//
//  Created by mini on 13-4-2.
//  Copyright (c) 2013年 hjj. All rights reserved.
//

#import <Foundation/Foundation.h>
@class XLResponse;
@interface XLConnection : NSObject
@property (nonatomic) BOOL needIndicator;
+ (BOOL)isSuccessReturn:(NSDictionary *)returnDict;
- (id)initWithDelegate:(id)delegate actionForSuccess:(SEL)success actionForFailure:(SEL)failure;
- (id)initWithCompletionBlock:(void (^)(XLConnection *connection, XLResponse *response, NSError *error))completionBlock;
- (void)setObject:(id)object forKey:(NSString *)key;
- (id)objectForKey:(NSString *)key;
- (void)upDataWithSIDs:(NSString*)ids;
- (void)checkUpdate;
- (void)postClickInfo:(NSString*)info;
- (void)setInfoWithCode:(NSString*)_code;

@end
